<template>
  <div class="error-page-wrapper">
    <div class="content-container" style="height: 100%">
      <div class="head-line" style="margin-top: 20%;">
        <img src="../assets/image/error.svg" alt="出错" width="120" />
      </div>
      <div class="subheader">
        HTTP 404- 无法找到文件-你所浏览的页面暂时无法访问 </div>
      <div class="hr"></div>
      <div class="context">
        <p>请确认你的访问方式是否正确，并且访问为合法方式途径。 </p>

      </div>
      <div class="buttons-container">
        <van-button type="primary" text="返 回 主 页" to="/" round class="btn404"></van-button>
      </div>
    </div>
  </div>
</template>

<script>
    export default {
        name: "404",
    }
</script>

<style scoped>

.btn404 {
  width: 140px;
}

body.error-page-wrapper,
.error-page-wrapper.preview {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.error-page-wrapper .content-container {
  border-radius: 2px;
  text-align: center;
  padding: 50px;
  background-color: #fff;
  width: 80%;
  max-width: 560px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -220px;
  margin-left: -280px;
}

.error-page-wrapper .head-line {
  transition: color .2s linear;
  font-size: 40px;
  line-height: 60px;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #777;
}

.error-page-wrapper .subheader {
  transition: color .2s linear;
  font-size: 32px;
  line-height: 46px;
  color: #494949;
}

.error-page-wrapper .hr {
  height: 1px;
  background-color: #eee;
  width: 80%;
  max-width: 350px;
  margin: 25px auto;
}

.error-page-wrapper .context {
  transition: color .2s linear;
  font-size: 16px;
  line-height: 27px;
  color: #aaa;
}

.error-page-wrapper .context p {
  margin: 0;
}

.error-page-wrapper .context p:nth-child(n+2) {
  margin-top: 16px;
}

.error-page-wrapper .buttons-container {
  margin-top: 20px;
  overflow: hidden;
}

@media screen and (max-width:580px) {
  .error-page-wrapper .content-container {
    padding: 37px;
    position: static;
    left: 0;
    margin-top: 0;
    margin-left: 0;
  }
  .error-page-wrapper .head-line {
    font-size: 36px;
  }
  .error-page-wrapper .subheader {
    font-size: 27px;
    line-height: 37px;
  }
  .error-page-wrapper .hr {
    margin: 30px auto;
    width: 215px;
  }
}

@media screen and (max-width:450px) {
  .error-page-wrapper .head-line {
    font-size: 32px;
  }
  .error-page-wrapper .hr {
    margin: 25px auto;
    width: 180px;
  }
  .error-page-wrapper .context {
    font-size: 15px;
    line-height: 22px;
  }
  .error-page-wrapper .context p:nth-child(n+2) {
    margin-top: 10px;
  }
  .error-page-wrapper .buttons-container {
    margin-top: 29px;
  }
}

</style>
